# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=libgrss
pkgver=0.7.0
pkgrel=1
pkgdesc="Glib library for feeds"
url="https://wiki.gnome.org/Projects/Libgrss"
arch="all"
license="LGPL-3.0-or-later"
makedepends="glib-dev gtk-doc libxml2-dev libsoup-dev gobject-introspection-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://download.gnome.org/sources/libgrss/${pkgver%.*}/libgrss-$pkgver.tar.xz
	CVE-2016-20011.patch
	"

# secfixes:
#   0.7.0-r1:
#     - CVE-2016-20011

prepare() {
	default_prepare

	update_config_sub
	update_config_guess
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-gtk-doc
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
22a4f13ee979932575c6efd25bfd2fb184ea113aa34254d9e4bfb64cfbbd9b277dd235b8c9be037baf8c85bea7ba3bc1478ec3c7a3c87e63aeddb1774959c780  libgrss-0.7.0.tar.xz
d80ce2a39993a4559d88282082256a3382c9c68cc0a1df538a8fdc6a47a99275752f7f69a18fd486b45916b98929d149dbcaf0319f764a3f30ce0b595438c436  CVE-2016-20011.patch
"
